// src/main/java/com/yc/exception/BusinessException.java
package com.yc.exception;

import org.springframework.http.HttpStatus;

/**
 * 所有业务异常的基类
 */
public abstract class BusinessException extends RuntimeException {
    private final HttpStatus httpStatus;

    public BusinessException(String message, HttpStatus httpStatus) {
        super(message);
        this.httpStatus = httpStatus;
    }

    public HttpStatus getHttpStatus() {
        return httpStatus;
    }
}
